{template header}
<div class="box">
    <div class="box_left_nav font_gray" style="font-size: 12px;">→ <a href="{$setting['site_url']}">{$setting['site_name']}</a> &gt; <a>我的积分</a> </div>
    <!--内容 begin-->
    <div class="ps_content">
        <!--左边 begin -->
        <div class="ps_contentl">
            <!--用户信息-->
            <!--左边 begin -->
            <!-- 个人信息 开始-->
            <div class="ps_box1">
                <div class="person_name">{$member['username']}</div>
                <div class="user_info">
                    <div class="person_pic"><img id="headPic" src="{$member['avatar']}" alt="{$member['username']}" title="{$member['username']}"></div>
                    <div class="user_subinfo">
                        <span>{$member['grouptitle']}</span>
                    </div>
                </div>
                <div class="user_info">
                    <!--{if 2==$membergroup['grouptype']}-->
                    <div>
                        {eval $credit1percentleft = 100-$credit1percent-1}
                        升级进度<img src="{SITE_URL}css/default/jindutiao_yellow.gif" alt="" style="vertical-align: middle;" width="{$credit1percent}" height="7"><img src="{SITE_URL}css/default/jindutiao_white-02.gif" alt="" style="vertical-align: middle;" width="{$credit1percentleft}" height="7"><img src="css/default/jindutiao_end.gif" alt="" style="vertical-align: middle;" width="1" height="7"><span class="font_gray">({$member['credit1']}/{$membergroup['creditshigher']})</span>
                    </div>
                   <!--{/if}-->
                </div>
                <!--{if $user['uid'] && $user['uid'] != $member['uid']}-->
                <div id="Usercontrol1_headOperate">
                    <span class="ps_icon1"><a href="javascript:void(0)"  onclick="javascript:sendmsg('{$member['username']}');">发送短消息</a></span>
                    <span class="ps_icon2 margin20"><a href="{url question/add/$member['uid']}">向TA提问</a></span>
                </div>
                <!--{/if}-->
            </div>
            <!-- 个人信息 结束-->
            <div class="nav_bar">
                <dl>
                    <dd class="nav_link" id="myscore"><a href="{url user/space/$member['uid']}">TA的问答主页</a></dd>
                    <dd class="hover" id="myask"><a href="{url user/space_ask/$member['uid']}">TA的提问</a></dd>
                    <dd class="nav_link" id="myanswer"><a href="{url user/space_answer/$member['uid']}">TA的回答</a></dd>
                </dl>
            </div>
            <!--左边 end -->
            <!--最近留言-->
            <div id="newMessage" class="user_info" ></div>
            <!--最近来访--></div>
        <!--左边 end -->

        <!--右边 begin -->
        <!-- 提问 回答-->
        <div class="ps_contentr">
            <div class="column">
                <div class="column_title2">
                    <ul>
                        <li class="tab_hover"><a>TA的全部提问</a></li>
                    </ul>
                </div>
            </div>
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td class="zxy_title" align="left" valign="middle" width="400" height="38">标题（共{$questiontotal}条）</td>
                    <td class="zxy_title" align="left" valign="middle" width="30"></td>
                    <td class="zxy_title" align="center" valign="middle" width="50" height="38">状态</td>
                    <td class="zxy_title" align="center" valign="middle" width="50" height="38">回答数</td>
                    <td class="zxy_title" align="center" valign="middle" width="50" height="38">悬赏分</td>
                    <td class="zxy_title" align="center" valign="middle" width="140" height="38">提问时间</td>
                </tr>
                <tr>
                    <td colspan="6" align="center" valign="middle" height="37">
                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                            <!--{loop $questionlist $question}-->
                            <tr>
                                <td colspan="3" class="zxy_biaoge_txt" align="left" valign="middle" width="460" height="34">
                                    <div class="tiw_blue_kuai">
                                        <span class="font_gray">[<a href="{url category/view/$question['cid']}">{$question['category_name']}</a>]</span>
                                        <span class="tiw_blue"><a href="{$question['url']}" target="_blank" title="{$question['title']}">{$question['title']}</a></span>
                                    </div>
                                </td>
                                <td class="zxy_biaoge_txt" align="left" valign="left" width="30" height="34"></td>
                                <td class="zxy_biaoge_txt f14 black" align="center" valign="left" width="50" height="34"><img src="{SITE_URL}css/common/icn_{$question['status']}.gif"></td>
                                <td class="zxy_biaoge_txt f14 black" align="center" valign="left" width="50" height="34">{$question['answers']}</td>
                                <td class="zxy_biaoge_txt f14 black" align="center" valign="left" width="50" height="34">{$question['price']}</td>
                                <td class="zxy_biaoge_txt f14 black" align="center" valign="middle" width="130" height="34">{$question['format_time']}</td>
                            </tr>
                            <!--{/loop}-->
                        </table>
                    </td>
                </tr>
                <tr class="font_gray">
                    <td class="f12" colspan="5" align="right" valign="middle" height="20">
                        <div id="ask_page" style="padding: 5px 0pt;"><span id="pg_right">{$departstr}</span></div>
                    </td>
                </tr>
            </table>
        </div>
        <!--右边 end --></div>
    <!--内容 end-->
    <div class="clear">
    </div>
</div>

<script type="text/javascript">
    function sendmsg(username){
        var is_code = {$setting['code_message']};
        var code_message='';
        if(is_code==1){
            code_message='<tr><td align="right" width="100">验证码 ：</td><td width="90%"><input maxlength="4" name="code" size="10" /><img id="verifycode" onclick="javascript:updatecode();" src="{url user/code}"/>&nbsp;<a href="javascript:updatecode();">看不清，换一个</a><span id="codetip"></span></td></tr>';
        }
        $.dialog({
            id:'sendmsgDiv',
            position:'center',
            align:'left',
            fixed:1,
            width:400,
            title:'发送消息',
            fnOk:function(){document.sendmsgForm.submit();$.dialog.close('sendmsgDiv')},
            fnCancel:function(){$.dialog.close('sendmsgDiv')},
            content:'<form name="sendmsgForm"  action="{url message/send}" method="post" ><input type="hidden" name="username" value="'+username+'"><table cellspacing="0" cellpadding="0" width="100%" border="0" valign="top"><tr><td class="f14" valign="top" nowrap align="left" width="10%" height="35">接收人 :&nbsp;&nbsp; </td><td valign="top" height="35">'+username+'</td></tr><tr><td class="f14" valign="top" nowrap align="left" height="35">主题 :&nbsp;&nbsp; </td><td valign="top" width="60%" height="35"><input type="text"  size="45"   name="title"  maxlength="20"></td></tr><tr><td class="f14" valign="top" nowrap align="left" height="35"> 内容 :&nbsp;&nbsp; </td><td valign="top" height="35"><textarea name="content" style="width: 95%; padding-top: 1px; font-size: 14px;" rows="8" ></textarea></td></tr>'+code_message+'</table></form>'
        });
    }
</script>
{template footer}